package com.ruoyi.project.system.item.service.impl;

import java.util.List;

import com.ruoyi.project.system.register.domain.ZzReceiverRegister;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.item.mapper.ZzPurchaseOrderItemMapper;
import com.ruoyi.project.system.item.domain.ZzPurchaseOrderItem;
import com.ruoyi.project.system.item.service.IZzPurchaseOrderItemService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-28
 */
@Service
public class ZzPurchaseOrderItemServiceImpl implements IZzPurchaseOrderItemService 
{
    @Autowired
    private ZzPurchaseOrderItemMapper zzPurchaseOrderItemMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param purchaseOrderItemId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public ZzPurchaseOrderItem selectZzPurchaseOrderItemById(Integer purchaseOrderItemId)
    {
        return zzPurchaseOrderItemMapper.selectZzPurchaseOrderItemById(purchaseOrderItemId);
    }

    /**
     * 查询【查询订单信息】列表
     * 
     * @param zzPurchaseOrderItem 【订单对象】
     * @return 【返回一个订单对象】
     */
    @Override
    public List<ZzPurchaseOrderItem> selectZzPurchaseOrderItemList(ZzPurchaseOrderItem zzPurchaseOrderItem)
    {
        return zzPurchaseOrderItemMapper.selectZzPurchaseOrderItemList(zzPurchaseOrderItem);
    }

    /**
     * 新增【订单信息】
     * 
     * @param zzPurchaseOrderItem 【订单对象】
     * @return 结果
     */
    @Override
    public int insertZzPurchaseOrderItem(ZzPurchaseOrderItem zzPurchaseOrderItem)
    {
        return zzPurchaseOrderItemMapper.insertZzPurchaseOrderItem(zzPurchaseOrderItem);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param zzPurchaseOrderItem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZzPurchaseOrderItem(ZzPurchaseOrderItem zzPurchaseOrderItem)
    {
        return zzPurchaseOrderItemMapper.updateZzPurchaseOrderItem(zzPurchaseOrderItem);
    }

    /**
     * 删除【通过ID删除订单】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZzPurchaseOrderItemByIds(String ids)
    {
        return zzPurchaseOrderItemMapper.deleteZzPurchaseOrderItemByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param purchaseOrderItemId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteZzPurchaseOrderItemById(Integer purchaseOrderItemId)
    {
        return zzPurchaseOrderItemMapper.deleteZzPurchaseOrderItemById(purchaseOrderItemId);
    }
}
